import request from '@/utils/request'

export default {
  option(params) {
    const action = params.action
    delete params.action
    return request({
      url: `/v1/${action}`,
      method: 'get',
      params: params.query
    })
  }
}
